<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>真爱梦想账户系统</title>
</head>
<body>
	<!-- <script language="javascript" type="text/javascript"> window.location.href="/account/normal/pages/member/menu.html"; </script> -->
	<script src="/account/normal/js/import.js"></script>
	<script type="text/javascript">
		$(function() {
			//获取跳转的系统
			var system = getParentUrlParam("system");
			if(system == undefined || system == null || system == "") {
				window.location.href="/account/normal/pages/member/menu.html";
			} else {
				var rootPath = getRootPath();
				//火堆
				if(system.toLowerCase() == "scfire") {
					$.ajax({
						url : rootPath + '/user/queryUserself',
						type : 'GET',
						contentType : 'application/json;charset=utf-8',
						success : function(data) {
							var user = data.returnObject;
							if(user != null && user.unionid != null && user.unionid != '') {
								//微信已绑定,跳转至火堆页面
								window.location.href="https://www.huodui.org/scfire";  //暂定页面
							} else {
								//跳转至微信绑定页面
								layer.msg('请绑定微信!',{icon:6,time:1000},function() {
									window.location.href="/account/normal/pages/member/menu.html?contentUrl=securitySetting.html&system=scfire";
								});
							}
						}
					});
				} else {
					window.location.href="/account/normal/pages/member/menu.html";
				}
			}
		})
	</script>
</body>
</html>